<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>
<script>
import * as api from "@/api/permission"
import recursionRoutes from "./router/recursionRoutes"
import allRoutes from "./router/generateRoute"
let routes = allRoutes.find(item => item.name === "home")
export default {
  mounted () {
    // api.getMenuListApi()
    // .then(res => {
    //   console.log(res);
    //   let userMenu = recursionRoutes(res.data.menuList,routes.children)
    //   console.log('userMenu',userMenu);
    // })
    // this.$store.dispatch('permission/FETCH_MENU_LIST')
  }
}
</script>
